package com.kaikai.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kaikai.commonutils.R;
import com.kaikai.edu.entity.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author yujiankai
 * @since 2021-05-02
 */

public interface EduTeacherService extends IService<EduTeacher> {
    /**
     * 获取首页的8个课程和4个名师
     * @return
     */
    List<EduTeacher> list4_teachers();

    Map<String, Object> getTeacherFrontList(Page<EduTeacher> pageTeacher);

    /**
     * @param id
     * @return boolean
     * @author yujiankai
     * @Description: 根据id删除讲师
     * @date 2021/11/23 22:29
     */
    R removeTeacherById(String id);

}
